package com.xframe.domain.knowledgeBase;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain=true)
@XTable(value = "knowledge_Files", label = "知识文件")
public class KnowledgeFiles {
    /**
     * 主键ID
     */
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name="file_id",primaryKeyFlag = true,desc = "主键ID",uniqueFlag = true,nullFlag = true)
    private Long fileId;


    /**
     * 经验ID
     */
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @XColumn(name = "kn_id",desc = "经验ID")
    private Long knId;

    /**
     * 文件名称
     */
    @XColumn(name = "file_name",desc = "文件名称")
    private String fileName;

    /**
     * 文件地址
     */
    @XColumn(name = "file_url",desc = "文件地址")
    private String fileUrl;

    /**
     * 文件类型 png
     */
    @XColumn(name = "file_type",desc = "文件类型")
    private String fileType;

    /**
     * 文件大小
     */
    @XColumn(name = "file_size",desc = "文件大小")
    private BigDecimal fileSize;

    /**
     * 文件类型 ：1图片，2音频，3视频，4文档
     */
    @XColumn(name = "file_category",desc = "文件类型")
    private Integer fileCategory;
}
